package com.hwy.catering.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hwy.catering.dto.DishDto;
import com.hwy.catering.entity.Dish;
import com.hwy.catering.entity.User;
import com.hwy.catering.utils.R;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface DishService extends IService<Dish> {
    //分页查找所有菜品
    R findDish(Page<Dish> pageParam,Dish dish);

    //添加菜品
    R addDish(Dish dish);

    //查找具体菜品
    R getByIdDish(Long id);

    //更改菜品信息
    R editDish(Long id, Dish dish);

    //删除菜品
    R deletedDish(Long id);

    //批量删除菜品
    R deleteSelect(List<Dish> dishList);

    //xlsx菜品导出
    R exportDish(HttpServletResponse response);

    //查找菜品选择器的数据
    R findDishOptions();
}
